/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package auditenergetic;


//import com.sun.xml.internal.fastinfoset.stax.events.ReadIterator;
import java.util.Iterator;
import jess.*;
public class ParseToJess {

  /*  private Rete engine;  
   
    public ParseToJess() throws JessException
    {
        // Create a Jess rule engine
        engine = new Rete();
        engine.reset();
        
        // Load the pricing rules
        //engine.batch("jess/cladire.clp");
   

    }
    public void exportToJess() throws JessException
    {
	Date_Cladire d= new Date_Cladire();
	engine.store("val", d);
	Value v = engine.executeCommand("(assert(cladire(fetch val)))");
	Fact f = v.factValue(engine.getGlobalContext());
    }
    public void print() throws JessException
    {
      //  Value ss = engine.batch("jess/cladire.clp");
       // String f = ss.atomValue(engine.getGlobalContext().pop().getFact().toString());
       // String s1 = f.getName();
       // Value v = engine.fetch("jess/cladire.clp");
       // String s = v.variableValue(engine.getGlobalContext());
      //  System.out.println(f);
        Fact f = new Fact("cladire", engine);
        
       // Iterator it = new ReadIterator(engine.listFacts());
       // while(it.hasNext())
        Value v = f.getIcon().getSlotValue("destinatie");
        System.out.println(v);
    }
    public static void main(String args[]) throws JessException
    {
        ParseToJess p = new ParseToJess();
        p.exportToJess();
        p.print();

    }

*/
}
